lib/repo: Do free space math under lock in error path
authorColin Walters <walters@verbum.org>
Mon, 18 Jun 2018 14:47:49 +0000 (14:47 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 19 Jun 2018 18:29:31 +0000 (18:29 +0000)
commit5e9d3828114d18340a93a30458cf8ac716f6f21e
tree4f6c35ee88ba59d4ee834b31b6aca436eb42235e
parentacab2c1ac6a6a30f0298feb2cbfcb3dc5e515d8a
lib/repo: Do free space math under lock in error path

We were referencing the txn bits outside of the lock in the error
path. Generally shouldn't matter, but e.g. Rust wouldn't let us do this, and
race detector tooling will warn about it.

Closes: #1632
Approved by: jlebon
src/libostree/ostree-repo-commit.c